import Client from "./Base.js";

export default {
  /**
   * 获取本学期课程（不包括实验课)
   */
  courses(uid) {
    return Client.get("/tclass",{
      id: uid
    });
  },
  /**
   * 获取本学期实验课
   */
  labcou(uid) {
    return Client.get("/tlabclass",{
      id: uid
    });
  },
  /**
   * 获取可申请实验室
   */
  getASLab(cname) {
    return Client.get("/findlab",{
      strr: cname
    });
  },
  /**
   * 发起实验室申请
   */
  setApply(uid, ecid, cid, apt, apl, apno) {
    return Client.get("/upTclass",{
      apat: uid,
      code: ecid,
      cid,
      apt,
      apl,
      apno
    });
  },
  /**
   * 发起签到
   */
  setSign(cid, num) {
    return Client.get("/tsign",{
      cid,
      nub: num
    });
  },
  /**
   * 创建实验课
   */
  setExp(cid, num) {
    return Client.get("/creatclass",{
      cid,
      nub: num
    });
  },
  /**
   * 我的申请信息
   */
  getMyApply(uid) {
    return Client.get("/asghd",{
      sid: uid
    });
  },
  /**
   * 我发起的签到
   */
  getMySign(uid) {
    return Client.get("/find",{
      sid: uid
    });
  },
  /**
   * 停止签到
   */
  stopSign(uid) {
    return Client.get("/asghd",{
      sid: uid
    });
  }
};